{%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
        <section class="col-lg-12 connectedSortable">
         <div class="box box-default box-solid">
             <form action="" method="post">	
                <div class="box-header with-border">
                    <span class="fa fa-wrench" style="float:left; font-size:18px; padding-top:3px; color:#3c8dbc;" ></span>
                    <p class="box-title">派单</p>
                </div>
                   <div class="box-body">
                       <div class="form-group">
                              <label for="inputPassword3" class="col-md-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
                                   报修内容：
                              </label>
                              <div class="input-group col-md-4 col-sm-12 col-xs-12">
							  {%$main_data.main_content%}
                              </div> 
                        </div>
                        <div class="form-group">
                              <label for="inputPassword3" class="col-md-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
                                   维修人员：
                              </label>
                              <div class="input-group col-md-4 col-sm-12 col-xs-12">
								 <select class="form-control" id="s1" name="maince_id" >
                                     <option value="">请选择</option>
									{%foreach from=$maince_lists key=key item=value%}		
									<option value="{%$value.maince_id%}">{%$value.maince_name%}</option>
									{%/foreach%}		
								  </select> 
                              </div> 
                        </div>
                       <div class="form-group">
                           <label for="inputPassword3" class="col-md-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
                               老师：
                           </label>
                           <div class="input-group col-md-4 col-sm-12 col-xs-12">
                               <select class="form-control" id="s1" name="staff_id" >
                                   <option value="">请选择</option>
                                   {%foreach from=$staff_lists key=key item=value%}
                                   <option value="{%$value.staff_id%}" {% if $main_data.staff_id eq $value.staff_id%}select{%/if%}>{%$value.staff_name%}</option>
                                   {%/foreach%}
                               </select>
                           </div>
                       </div>
						<div class="form-group">
                              <label for="inputPassword3" class="col-md-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
                                   指派时间：
                              </label>
                              <div class="input-group col-md-4">
							   <input type="text" class="form-control"  id="from" name="assign_time" value="{%$main_data.assign_time%}">
							     <div class="input-group-addon">
									<i class="fa fa-calendar"></i>
								 </div>
						    </div> 
                        </div>
                        <div class="form-group">
                              <label for="inputPassword3" class="col-md-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
                                   加急项目：
                              </label>
                              <div class="input-group col-md-4 col-sm-12 col-xs-12">
                                     <label><input type="radio" name="main_urgent" value='1'{%if $main_data.main_urgent ==1%}checked{%/if%}> 是</label>
                                     <label><input type="radio" name="main_urgent" value="2"{%if $main_data.main_urgent ==2%}checked{%/if%}> 否</label>
                              </div> 
                        </div>
                        <div class="form-group">
                              <label for="inputPassword3" class="col-md-4 control-label text-right" style="padding-right:0; padding-left:0; font-weight:500;">
                                   备注：
                              </label>
                              <div class="input-group col-md-4 col-sm-12 col-xs-12">
                                    <textarea class="form-control" rows="2" name="main_remark">{%$main_data.main_remark%}</textarea>
                              </div> 
                        </div>
				   </div><!--box-body -->
                   <div class="box-footer text-center">
                        <button class="btn btn-primary" type="submit">确 定 派 单</button>
                   </div>
               </form>
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束-->
{%include file="index.footer.tpl.php"%}
<script>
  $(function() {
    $( "#from" ).datepicker({
      changeMonth: true,
	  changeYear: true, 
    });
  });
</script>